package com.baidu.service;

import com.baidu.entity.DeptBean;
import com.baidu.entity.PowerBean;
import com.baidu.entity.RoleBean;
import com.baidu.entity.UserBean;
import com.baidu.utils.Page;

import java.util.Date;
import java.util.List;

/**
 * 创作时间：2019/12/10 14:45
 * 作者：李增强
 */
public interface UserService {
    List<UserBean> getUserList(UserBean ub, Date sbirthday, Date ebirthday, Page page);



    UserBean getUserLogin(UserBean userBean);

    List<PowerBean> getPowerList(Integer rid);

    List<RoleBean> getRoleList();

    List<DeptBean> getDeptList();

    DeptBean getDeptByDeptid(Integer deptid);

    List<PowerBean> getUserPower(Integer id);

    void saveRolePower(Integer rid, String ids);

    UserBean getUserById(UserBean ub);

    void saveUserDept(UserBean ub);

    List<RoleBean> getDeptRoleList(UserBean ub);

    void saveUserRole(UserBean ub);

    List<Integer> getDeptRids(Integer deptid);

    void saveDeptRole(Integer deptid, Integer[] rids);


    //////////////////////////////////////////////

    void deleteUserById(Integer id);


    void updateUser(UserBean ub);

    void saveUser(UserBean userBean);

    Integer getUserCount(UserBean ub, Date sbirthday, Date ebirthday);
}
